[HVM][LINUX] Add a header file with wrappers for hvm_op hypercall.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 14 Aug 2006 10:35:57 +0000 (11:35 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 14 Aug 2006 10:35:57 +0000 (11:35 +0100)
Signed-off-by: Steven Smith <ssmith@xensource.com>
linux-2.6-xen-sparse/include/xen/hvm.h [new file with mode: 0644]

diff --git a/linux-2.6-xen-sparse/include/xen/hvm.h b/linux-2.6-xen-sparse/include/xen/hvm.h
new file mode 100644 (file)
index 0000000..25987ff
--- /dev/null
@@ -0,0 +1,17 @@
+/* Simple wrappers around HVM functions */
+#ifndef XEN_HVM_H__
+#define XEN_HVM_H__
+
+#include <xen/interface/hvm/params.h>
+#include <asm/hypercall.h>
+
+static inline unsigned long hvm_get_parameter(int idx)
+{
+       struct xen_hvm_param xhv;
+
+       xhv.domid = DOMID_SELF;
+       xhv.index = idx;
+       return HYPERVISOR_hvm_op(HVMOP_get_param, &xhv);
+}
+
+#endif /* XEN_HVM_H__ */